Closed Bug 603292 Opened 15 years ago Closed 15 years ago

PRUint32 countU < 0 is useless in nsHTMLEditor::AddNewStyleSheetToList

Categories

(Core :: DOM: Editor, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: timeless, Assigned: ehsan.akhgari)

References

(Blocks 1 open bug)

Details

(Keywords: coverity)

Attachments

(1 file)

3644 nsHTMLEditor::AddNewStyleSheetToList(const nsAString &aURL, 3645 nsCSSStyleSheet *aStyleSheet) 3646 { 3647 PRUint32 countSS = mStyleSheets.Length(); 3648 PRUint32 countU = mStyleSheetURLs.Length(); 3649 3650 if (countU < 0 || countSS != countU) 3651 return NS_ERROR_UNEXPECTED;
Attached patch Patch (v1)Splinter Review
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #482424 - Flags: review?(roc)
Attachment #482424 - Flags: approval2.0?
Attachment #482424 - Flags: approval2.0? → approval2.0+
Whiteboard: [needs landing]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [needs landing]
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: